package com.lechuang.system.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.lechuang.common.model.BaseEntity;
import java.io.Serializable;
import lombok.Data;
import lombok.experimental.Accessors;

/**
 * 省市区基础表
 * @TableName region_dictionary
 */
@TableName(value ="region_dictionary")
@Data
@Accessors(chain = true)
public class RegionDictionary implements Serializable {

    /**
     *  主键id
     */
    private Long id;

    /**
     * 父id
     */
    private Long parentId;

    /**
     * 地区名称
     */
    private String name;

    /**
     * 1=省份, 2=市, 3=区/县
     */
    private Integer level;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}